import request from '@/utils/request'

// 查询预约挂号列表
export function listAppointment(query) {
  return request({
    url: '/system/appointment/list',
    method: 'get',
    params: query
  })
}

// 查询科室列表
export function listDepartment() {
  return request({
    url: '/system/department/list',
    method: 'get'
  })
}

// 根据ID查询预约挂号详情
export function getAppointment(id) {
  return request({
    url: '/system/appointment/' + id,
    method: 'get'
  })
}



